import Base from '@/services/base'

export default class HomeworkService extends Base {
	constructor(auth, showloading) {
		super(auth, showloading);
	}

	//作业题目信息
	async homeworkInfo(params) {
		return await this.fly.get('/api/course/queryLessonHomeworkInfo', params);
	}
	
	//提交作业
	async submitHomework(params) {
		return await this.fly.post('/api/course/submitHomeWork', params);
	}
	
	//作业结果报告
	async homeworkReport(param) {
		return await this.fly.get('/api/course/queryHomeworkReport', param);
	}
	
	//作业解析
	async homeworkAnalysis(param) {
		return await this.fly.get('/api/course/queryLessonHomeworkAnalysis', param);
	}
	
	//作业单题解析
	async homeworkOneAnalysis(param) {
		return await this.fly.get('/api/course/querySubjectAnalysis', param);
	}

}
